package com.example.diagnose.Domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("favorite_article")
@Schema(name = "收藏文章实体类")
@Repository
public class FavoriteArticle {
    @TableId(type = IdType.AUTO)
    @Schema(name = "收藏id")
    private int favorite_id;
    @Schema(name = "用户id")
    private String user_account;
    @Schema(name = "文章id")
    private int article_id;
}
